<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">

/* 获取列表中选中的数据 */
var checkboxarr=$('#menus11 :checkbox');
var rolemenuArr="";
for(i=0;i<checkboxarr.length;i++){
	if(checkboxarr[i].checked==true){
		rolemenuArr+=checkboxarr[i].value+"/";
    }
}	 
</script>
</head>
<body>



	<div class="panel panel-primary" style="width: 300px;">
		<div class="panel-heading">角色列表</div>
		<div class="panel-body"
			style="max-height: 400px; overflow-y: scroll; overflow-x: none;">
			<div class="css3-treeview">
				<ul id="menus11">
				<!-- 循环数据list 生成列表 -->
					<li th:each="sb:${list}">
					<label> 
					    <input	name="rolemenu" type="checkbox" th:value="${sb.id}"  th:checked="${sb.checked}" />
					    <span></span>
					</label> 
					<span th:text="${sb.name}">菜单名称</span></li>
				</ul>
			</div>
		</div>
	</div>


</body>
</html>